package com.sc.nft.mapper;

import com.sc.nft.entity.UserMerchantPledgeTaskCollectionRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.merchantPledgeTask.MerchantPledgeTaskUserCollectionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户商户质押任务记录-藏品记录表(sc_user_merchant_pledge_task_collection_records)数据Mapper
 *
 * @author Sun
 * @since 2023-11-06 13:36:41
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserMerchantPledgeTaskCollectionRecordsMapper extends BaseMapper<UserMerchantPledgeTaskCollectionRecords> {

    /**
     * 获取用户质押的藏品汇总
     * @param userRecordsId
     * @return
     */
    String getResultListByUserRecordsId(@Param("userRecordsId") Long userRecordsId);

    /**
     * 获取用户质押的藏品汇总
     * @param userRecordsId
     * @param userId
     * @return
     */
    List<MerchantPledgeTaskUserCollectionVO> getCollectionByUserRecordsIdGroupCollectionId(@Param("userRecordsId") Long userRecordsId,@Param("userId") Long userId);
}
